const echart  = {
	state: {
		echartColors:  ['#86D560', '#AF89D6', '#59ADF3', '#009DFF','#FF7D18'],
		addSourseVisible: false,
		editSourseVisible: false,
		editSuccess: false
	},
	mutations: {
	    ECHART_COLORS_CHANG: (state, parm) => {
			state.echartColors = parm
		},
		ADD_SOURSE_VISIBLE:  (state, parm) => {
			state.addSourseVisible = parm
		},
		EDIT_SOURSE_VISIBLE:  (state, parm) => {
			state.editSourseVisible = parm
		},
		EDIT_SUCCESS_CHANGE:  (state, parm) => {
			state.editSuccess = parm
		}
	},
	actions: {
	    echartColorsChange({ commit }, parm) {
	        commit('ECHART_COLORS_CHANG', parm)
		},
		addSourseVisibleChange({ commit }, parm) {
	        commit('ADD_SOURSE_VISIBLE', parm)
		},
		editSourseVisibleChange({ commit }, parm) {
	        commit('EDIT_SOURSE_VISIBLE', parm)
		},
		editSuccessChange({ commit }, parm) {
	        commit('EDIT_SUCCESS_CHANGE', parm)
		}
	}
}
export default echart
